package shuashuami.hb.com.manager.agent;

import shuashuami.hb.com.entity.agent.User;

/**
 * created by zhangqi at 2017/6/28
 */
// 用户管理类，保存内存中的用户信息
public class UserManager {

    private User user;


    public User getUser() {
        if(user==null) {
            user=new User();
        }
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private static UserManager appManager;

    public static UserManager getInstance() {
        if (appManager == null) {
            appManager = new UserManager();
        }
        return appManager;
    }
}
